From: Florian Müllner Date: Tue, 5 Aug 2014 21:26:45 +0000 (+0200) Subject: appDisplay: Use Clutter.GridLayout X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2279 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fe60db64e0a8750bc317f1eced13c49d66e80e64;p=gnome-shell.git appDisplay: Use Clutter.GridLayout Clutter.TableLayout has been deprecated, so move to the recommended replacement. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 194905f0b..3eae1e5a3 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -964,7 +964,7 @@ const FolderView = new Lang.Class({ }, createFolderIcon: function(size) { - let layout = new Clutter.TableLayout(); + let layout = new Clutter.GridLayout(); let icon = new St.Widget({ layout_manager: layout, style_class: 'app-folder-icon' }); layout.hookup_style(icon); @@ -980,7 +980,7 @@ const FolderView = new Lang.Class({ } else { bin = new St.Bin({ width: subSize, height: subSize }); } - layout.pack(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2)); + layout.attach(bin, rtl ? (i + 1) % 2 : i % 2, Math.floor(i / 2), 1, 1); } return icon;